package com.zqw.info;


import com.zqw.ss.MyPa;

import java.util.List;
import java.util.Objects;

public class GoodsInfo {

    @MyPa("gid")
    private String goodsId;
    @MyPa("gname")
    private String goodsName;
    @MyPa("gimage")
    private String goodsImage;
    @MyPa("gprice")
    private float goodsPrice;
    @MyPa("gtype")
    private int goodsType = -1;
    @MyPa("gdesc")
    private String goodsDesc;
    @MyPa("gdiscount")
    private float goodsDiscount;
    @MyPa("gisdelete")
    private int goodsIsdelete;
    @MyPa("glable")
    private int goodsLabel = -1;
    @MyPa("gsex")
    private int goodsSex = -1;

    private GoodsTypeInfo type;

    @MyPa("num")
    private int goodsNumber = 1;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GoodsInfo goodsInfo = (GoodsInfo) o;
        return goodsId.equals(goodsInfo.goodsId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(goodsId);
    }

    public int getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(int goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public GoodsTypeInfo getType() {
        return type;
    }

    public void setType(GoodsTypeInfo type) {
        this.type = type;
    }

    private int pageNum = 1;
    private int pageSize = 3;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage;
    }

    public float getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(float goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public int getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(int goodsType) {
        this.goodsType = goodsType;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public float getGoodsDiscount() {
        return goodsDiscount;
    }

    public void setGoodsDiscount(float goodsDiscount) {
        this.goodsDiscount = goodsDiscount;
    }

    public int getGoodsIsdelete() {
        return goodsIsdelete;
    }

    public void setGoodsIsdelete(int goodsIsdelete) {
        this.goodsIsdelete = goodsIsdelete;
    }

    public int getGoodsLabel() {
        return goodsLabel;
    }

    public void setGoodsLabel(int goodsLabel) {
        this.goodsLabel = goodsLabel;
    }

    public int getGoodsSex() {
        return goodsSex;
    }

    public void setGoodsSex(int goodsSex) {
        this.goodsSex = goodsSex;
    }
}
